﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UniversaleMain.Master" AutoEventWireup="true" CodeBehind="SurveyFeedback.aspx.cs" Inherits="FYPDemo.SurveyFeedback" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1 class="h1_title">Survey Feedback</h1>
    <table>
        <tr>
            <td>
                <asp:Label ID="lblVendor" runat="server" Text="Vendor: ">
                </asp:Label><asp:DropDownList ID="ddlVendor" runat="server"></asp:DropDownList>
            </td>            
        </tr>

        <tr>
            <td>
            </td>
        </tr>

        <tr>
            <td>
                <asp:Label ID="lblQ1" runat="server" Text="Do you feel that the price of product of this vendor is reasonable?"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:RadioButtonList ID="rbA1" runat="server" RepeatDirection="Horizontal">
                    <asp:ListItem Value="0">No</asp:ListItem>
                    <asp:ListItem Value="1">Yes</asp:ListItem>
                </asp:RadioButtonList>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ErrorMessage="Must select any answer" ControlToValidate="rbA1" ForeColor="Red" 
                    ValidationGroup="checkValidation"></asp:RequiredFieldValidator>
            </td>
        </tr>

        <tr>
            <td>
                <asp:Label ID="lblQ2" runat="server" Text="Do you think the quality of product of this vendor is trustable?"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:RadioButtonList ID="rbA2" runat="server" RepeatDirection="Horizontal">
                    <asp:ListItem Value="0">No</asp:ListItem>
                    <asp:ListItem Value="1">Yes</asp:ListItem>
                </asp:RadioButtonList>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                ErrorMessage="Must select any answer" ControlToValidate="rbA2" ForeColor="Red" 
                    ValidationGroup="checkValidation"></asp:RequiredFieldValidator>
            </td>
        </tr>

        <tr>
            <td>
                <asp:Label ID="lblQ3" runat="server" Text="Does the stock of product of this vendor out of stock frequently?"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:RadioButtonList ID="rbA3" runat="server" RepeatDirection="Horizontal">
                    <asp:ListItem Value="0">No</asp:ListItem>
                    <asp:ListItem Value="1">Yes</asp:ListItem>
                </asp:RadioButtonList>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                ErrorMessage="Must select any answer" ControlToValidate="rbA3" ForeColor="Red" 
                    ValidationGroup="checkValidation"></asp:RequiredFieldValidator>
            </td>
        </tr>

        <tr>
            <td>
                <asp:Label ID="lblQ4" runat="server" Text="Does the vendor react quick upon your orders?"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:RadioButtonList ID="rbA4" runat="server" RepeatDirection="Horizontal">
                    <asp:ListItem Value="0">No</asp:ListItem>
                    <asp:ListItem Value="1">Yes</asp:ListItem>
                </asp:RadioButtonList>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                ErrorMessage="Must select any answer" ControlToValidate="rbA4" ForeColor="Red" 
                    ValidationGroup="checkValidation"></asp:RequiredFieldValidator>
            </td>
        </tr>

        <tr>
            <td>
                <asp:Label ID="lblQ5" runat="server" Text="Do you like the products of this vendor?"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:RadioButtonList ID="rbA5" runat="server" RepeatDirection="Horizontal">
                    <asp:ListItem Value="0">No</asp:ListItem>
                    <asp:ListItem Value="1">Yes</asp:ListItem>
                </asp:RadioButtonList>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                ErrorMessage="Must select any answer" ControlToValidate="rbA5" ForeColor="Red" 
                    ValidationGroup="checkValidation"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblComment" runat="server" Text="Comment"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:TextBox ID="txtComment" runat="server" TextMode="MultiLine" MaxLength="200"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Button ID="btnSubmit" runat="server" Text="Submit" 
                    onclick="btnSubmit_Click" Enabled="false" 
                    ValidationGroup="checkValidation" CssClass="buttonbg"/>
            </td>
        </tr>
    </table>
</asp:Content>
